﻿using AutoMapper;
using BCDto.TMS.Packing.PackingCategoryConfig;
using BCDto.TMS.Packing.PackingConfig;
using BCDto.TMS.Packing.PackingConfigOverwrite;
using BCEntity.TMS.OrderPackingRecord;
using BCEntity.TMS.Packing.PackingCategoryConfig;
using BCEntity.TMS.Packing.PackingConfig;
using BCEntity.TMS.Packing.PackingConfigOverwrite;

namespace BCService.MapperProfiles.TMS.Packing
{
    public class PackingProfile : Profile
    {
        public PackingProfile()
        {
            CreateMap<PackingCategoryConfigEntity, PackingCategoryConfigDto>().IgnoreAllPropertiesWithAnInaccessibleSetter();

            CreateMap<PackingConfigEntity, PackingConfigDto>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<PackingConfigEntity, PackingConfigViewDto>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<PackingConfigOverwriteEntity, PackingConfigViewDto>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<PackingConfigOverwriteEntity, PackingConfigOverwriteDto>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<PackingConfigViewEntity, PackingConfigViewDto>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<PackingConfigViewEntity, PackingConfigDto>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<PackingConfigOverwriteViewEntity, PackingConfigOverwriteViewDto>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<PackingConfigRequestDto, PackingConfigEntity>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<OrderPackingRecordEntity, PackingConfigViewDto>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<PackingConfigViewDto, OrderPackingRecordEntity>().IgnoreAllPropertiesWithAnInaccessibleSetter();
        }
    }
}
